<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    
	
	<title>_${customer.customerName}_出库订单明细</title>
	<script type="text/javascript">
	    
	    //导出Excel
	    function exportExcel(){
	       $("#queryForm").attr("action","${ctx}/focusOutInfo/expDetail");
	    }
	    
	    //返回统计页面
	    function reback(){
	       $("#queryForm").attr("action","${ctx}/focusOutInfo/queryOutInfo");
	       $("#queryForm").submit();
	    }
	    
    </script>
</head>

<body>
	<div style="height: 10px;"></div>
	
	 <form class="form-search" id="queryForm" method="post" style="margin-top: 10px;">
	    
	   <input type="hidden"  name="_customerCode" value="${_customerCode}"/>
	   <input type="hidden"  name="_warehouseCode" value="${_warehouseCode}"/>
	   <input type="hidden"  name="_shopCode" value="${_shopCode}"/>
	   <input type="hidden"  name="_fromDate" value="${_fromDate}"/>
	   <input type="hidden"  name="_toDate" value="${_toDate}"/>
	   <input type="hidden"  name="_batchCode" value="${_batchCode}"/>
	   <input type="hidden" name="_taskCode"  value="${_taskCode}" />
	   <input type="hidden" name="_sku" value="${_sku}" /> 
	 
	   <button class="btn btn-info" type="submit" onclick="exportExcel();">导出Excel</button>
       <button class="btn btn-primary" style="margin-left: 10px;" onclick="reback();">返回</button>
     </form>
     
     
     <div style="height: 10px;"></div>
	
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
	    <thead>
			<th style="vertical-align: middle; color: white; " colspan="14" bgcolor="#8EB4CB">出库订单明细</th>
		</thead>
		<thead><tr>
		    <th style="width: 100px;">序列</th>
		    <th style="width: 100px;">商家</th>
		    <th style="width: 180px;">发货仓库</th>
		    <th style="width: 180px;">销售店铺</th>
		    <th style="width: 80px;">批次号</th>
		    <th style="width: 80px;">订单号</th>
		    <th style="width: 80px;">商品名</th>
		    <th style="width: 80px;">SKU</th>
			<th style="width: 80px;">数量</th>
			<th style="width: 80px;">价格</th>
			<th style="width: 80px;">收件人</th>
			<th style="width: 80px;">昵称</th>
			<th style="width: 80px;">收件地址</th>
			<th style="width: 80px;">联系电话</th>
		</tr></thead>
		<tbody>
		
		<c:if test="${empty infoList or infoList.size() eq 0}">
	       <tr><td colspan="14" height="50" style="vertical-align:middle; text-align: center;color: gray;font-size: 20px;">无数据</td></tr>
	    </c:if>
		
		<c:if test="${not empty infoList}">
		<c:forEach items="${infoList}" var="info" varStatus="i">
			<tr>
			   <td>${i.count}</td>
			   <td>${info.customerCode}</td>
			   <td>${info.warehouseCode}</td>
			   <td>${info.shopna}</td>
			   <td>${info.batchCode}</td>
			   <td>${info.orderno}</td>
			   <td>${info.goodsName}</td>
			   <td>${info.sku}</td>
			   <td>${info.num}</td>
			   <td>${info.price}</td>
			   <td>${info.recena}</td>
			   <td>${info.custna}</td>
			   <td>${info.address}</td>
			   <td>${info.mobile}${info.teleph}</td>
			</tr>
		</c:forEach>
		</c:if>
		
		</tbody>
	</table>
	
	
</body>
</html>
